/**
 * com.dingjian.permission.model.Menu.java
 */
package com.dingjian.permission.model;

import java.util.List;

import com.dingjian.basedata.TreeEntity;

/**
 * 菜单
 * @author FengMy
 * 
 * @since 2012-9-13
 */
public class Menu extends TreeEntity<Menu> {
	private static final long serialVersionUID = 5273842289637591401L;
	
	/**
	 * URL，系统内菜单为短url：basedata/org/list(request.getServletPath())
	 * 系统外菜单为完整url：http://baidu.com
	 */
	private String link;
	
	/**
	 * 小图标
	 */
	private String miniIcon;
	
	/**
	 * 大图标
	 */
	private String largeIcon;
	
	/**
	 * 权限项
	 */
	private PermissionItem permissionItem;
	
	/**
	 * 下级菜单
	 */
	private List<Menu> children;
	
	public Menu getParent(){
		return this.parent;
	}
	
	public void setParent(Menu parent){
		this.parent = parent;
	}

	public void setPermissionItem(PermissionItem permissionItem) {
		this.permissionItem = permissionItem;
	}

	public PermissionItem getPermissionItem() {
		return permissionItem;
	}

	public void setMiniIcon(String miniIcon) {
		this.miniIcon = miniIcon;
	}

	public String getMiniIcon() {
		return miniIcon;
	}

	public void setLargeIcon(String largeIcon) {
		this.largeIcon = largeIcon;
	}

	public String getLargeIcon() {
		return largeIcon;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getLink() {
		return link;
	}

	public void setChildren(List<Menu> children) {
		this.children = children;
	}

	public List<Menu> getChildren() {
		return children;
	}
}
